import 'package:flutter/material.dart';
import 'package:flutter_comm_base_framework/core/utils/ColorsUtil.dart';

class CustomRaisedButton extends RaisedButton {
  CustomRaisedButton(String text, Function onBtnClick,
      {Color lineColor = Colors.transparent,
      double radius = 5,
      List<Color> bgColors = const [ColorsUtil.blue_dark1, ColorsUtil.blue_dark2],
      Color textColor = Colors.white,
      double textSize = 15})
      : super(
          child: new Container(
            decoration: BoxDecoration(
              border: Border.all(color: lineColor, width: 1.0),
              borderRadius: BorderRadius.circular(radius),
              gradient: LinearGradient(colors: bgColors),
            ),
            child: new Text(text,style: TextStyle(fontSize: textSize)),
            padding: EdgeInsets.fromLTRB(16, 5, 16, 5),
            alignment: Alignment.center,
          ),
          elevation: 0,
          onPressed: onBtnClick,
          textColor: textColor,
        );
}
